package com.health.es.annotation;

import com.health.es.config.EsInitRegister;
import com.health.es.util.ElasticsearchRestTemplate;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.context.annotation.Import;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

import java.lang.annotation.*;

/**
 * 是否开启 ES mapping 初始化 校验 mapping 等
 * @author nqlz
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Documented
@Import(EsInitRegister.class)
public @interface EnableEsInit {
    Class<?>[] value() default {};
    String[] packageName() default {};
}
